package com.ebook.database.dao;

import com.ebook.entity.User;

import java.util.List;

public interface UserDao {
    User selectUserByUserName(String userName);
    User selectUserByUserNameAndPassword(String userName,String password);
    void addUser(User user);
    List<User> selectAll();
    void deleteUser(User user);
    void updateUser(User user);
    void becomeVip(String userName);
    User selectUserByUserId(Integer userId);
}
